{template "header.html", "/"}
<div class="main-box">
    <div class="content1-show">
        <ul>
            <li>
                <a href="">
                    <div class="pic">
                        <img src="/styles/images/idx1.jpg"
                             alt="">
                    </div>
                    <h1>
                        住宅空间设计</h1>
                    <div class="des">
                        简约的装饰，又没有太多的羁绊，优雅而不失自在与随性，既舒适又雅致。
                    </div>
                </a>
            </li>
            <li>
                <a href="">
                    <div class="pic">
                        <img src="/styles/images/idx2.jpg"
                             alt="">
                    </div>
                    <h1>
                        商业空间设计</h1>
                    <div class="des">
                        留白，是对空间成长的一个预留，希望在我们的认知发生改变的时候，空间才有成长的可能...
                    </div>
                </a>
            </li>
            <li>
                <a href="">
                    <div class="pic">
                        <img src="/styles/images/idx3.jpg"
                             alt="">
                    </div>
                    <h1>
                        建筑规划设计</h1>
                    <div class="des">
                        将功能、质量、设计、价值结合在一起，并始终牢记可持续发展理念、
                    </div>
                </a>
            </li>
        </ul>
    </div>
    <div class="content2-show">
        <div class="pic">
            <img src="/styles/images/idx5.jpg"
                 alt="">
        </div>
        <div class="ct-box">
            <div class="left">
                <img src="{dr_get_file(dr_share_cat_value(5, 'thumb'))}"
                     alt="">
            </div>
            <div class="right">
                <h1>
                    关于鑫作
                    <span>About  us</span>
                </h1>
                <div class="des">
                    {dr_clearhtml(dr_share_cat_value(2, 'content'))}
                </div>
                <ul>
                    <li>
                        <img src="/styles/images/idx7.png"
                             alt="">
                        <h3>
                            原创设计</h3>
                    </li>
                    <li>
                        <img src="/styles/images/idx8.png"
                             alt="">
                        <h3>
                            施工安装</h3>
                    </li>
                    <li>
                        <img src="/styles/images/idx9.png"
                             alt="">
                        <h3>
                            双重质检</h3>
                    </li>
                    <li>
                        <img src="/styles/images/idx10.png"
                             alt="">
                        <h3>
                            售后无忧</h3>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <div class="content3-show">
        <div class="menu">
            <h1>
                项目案例
                <span>Project Case</span>
            </h1>
            <ul>
                {list action=category module=share pid=6}
				<li>
					<a href="{$t.url}">
						{$t.name}
					</a>
				</li>
				{/list}
            </ul>
        </div>
        <div class="case-show">
            <ul>
			{template "index_data.html"}
			

            </ul>
            <div class="loadMore" onclick="dr_loading()">
                查看更多作品
            </div>
        </div>
    </div>
</div>
<script>
    window.onresize = resize;

    function pc_bannerH() {
        $('.pc-banner .pic').height($(window).height() - 80);
    }

    pc_bannerH();

    function ct2_rightH() {
        $('.main-box .content2-show .ct-box .right').height($('.main-box .content2-show .ct-box .left').height());
    }

    ct2_rightH();


    function resize() {
        pc_bannerH();
        ct2_rightH();

    }
	var dr_page = 1;
	function dr_loading() {
		dr_page++; // 加载下一页的意思
		
		$.get('{SITE_URL}index.php?s={MOD_DIR}&c=api&m=template&name=index_data.html&page='+dr_page, function (html) {
			if(!html){
				$('.loadMore').text('暂无更多作品');
			}else{
				$('.case-show ul').append(html); // 将返回的内容追加到内容区域
			}
			
		});
	}
</script>
{template "footer.html"}